package org.example.authservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;
import org.example.authservice.pojo.PermissionRole;

import java.util.List;

/**
 * @author lj20050120
 */
@Mapper
public interface PermissionRoleMapper extends BaseMapper<PermissionRole> {
    /**
     * 保存角色菜单
     * @param roleId        角色id
     * @param permissionIds 菜单id列表
     */
    void savePermissionRole(@Param("roleId") Integer roleId, @Param("permissionIds") List<Integer> permissionIds);
}

